<template>
  <div class="mask-layer">
    <div class="modal-wrap">

      <div class="title">
        检测到您没打开定位权限，确定去设置打开？
      </div>
      <div class="btn">
        <button open-type="openSetting"
                @opensetting="_openSetting">确定</button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    _openSetting (e) {
      this.$emit('returnOpenSetting', e)
    }
  }

}
</script>

<style lang="scss" type="text/scss">
@import '../common/scss/base';

.mask-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 13;
  background: rgba(0, 0, 0, 0.4);
  padding-top: 400px;
  .modal-wrap {
    padding-top: 30px;
    box-sizing: border-box;
    margin: auto;
    width: 540px;
    background: #ffffff;
    border-radius: 10px;
    .title {
      height: 100px;
      @include fjc(center);
      @include fontSize(30);
      padding: 0 30px;
      padding-bottom: 20px;
      @include border-bottom($lineColor);
    }
    .btn {
      > button {
        background: transparent;
        height: 88px;
        @include fjc(center);
        @include fontSize(28);
      }
      button:after {
        border: none;
      }
    }
  }
}
</style>
